﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DACK_MHTTUD_0912008_0912493
{
    public abstract class Type_Hash
    {
        // tra ve gia tri hash cua file duoc dua boi duong dan tham so dau vao
        public virtual string GetHash(string path_file)
        {
            return "";
        }

        // so sanh 2 gia tri hash (1 hash do minh tao ra, 1 hash tu file download ve duoc)
        public bool VerifyHash(string hash1, string hash2)
        {
            if (string.Compare(hash1.ToLower(), hash2.ToLower()) == 0)
                return true;
            return false;
        }
    }
}
